<?php
namespace model\project;
use model\Base as Base;
use sp\db\sql\SqlWhere;

class Manager extends Base{

    public function getTable(){
        $table = table('project');

        $table->setWhereConf('searchKey', array('tag', 'like'));
        $table->setWhereConf('_order', function(SqlWhere $where, $value){
            switch ($value) {
                default:
                    $where->order_by('id', 'desc');
                    break;
            }
        });
        return $table;
    }

}